/*
 * Rect.h
 *
 *  Created on: Jul 24, 2010
 *      Author: Ry
 */

#ifndef RECT_H_
#define RECT_H_

class Rect {
public:
	int x;
	int y;
	int width;
	int height;

	Rect();
	Rect(int x, int y, int width, int height);

	/**
	 * Determines if the provided x/y coords are inside the rect
	 */
	bool inside(int x, int y);

	/**
	 * Positions the rect at x, y
	 */
	void positionAt(int x, int y);

	/**
	 * Centers the rect about position x, y
	 */
	void centerAt(int x, int y);

	int centerX();

	int centerY();

	virtual ~Rect();
};

#endif /* RECT_H_ */
